package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 沥青拌合站固定材料价格业务对象 n_asphalt_material_price_details
 *
 * @author zyb
 * @date 2023-09-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NAsphaltMaterialPriceDetailsBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 拌合站主键
     */
    @NotBlank(message = "拌合站主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stationId;

    /**
     * 材料价格
     */
    @NotNull(message = "材料价格不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 材料类型
     */
    @NotBlank(message = "材料类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 价格单位
     */
    @NotBlank(message = "价格单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 添加人主键，关联sys_user主键
     */
    @NotBlank(message = "添加人主键，关联sys_user主键不能为空", groups = { AddGroup.class, EditGroup.class })
    private String insertBy;

    /**
     * 添加时间
     */
    @NotNull(message = "添加时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date insertTime;


}
